1. /* existfil.cpp by K. Tsuru*/
  2. /************************************
  3. It returns whether the file exist or not.
  4. *************************************/
  5. #define _CRT_SECURE_NO_WARNINGS // for visual c++ since ver 2.19
  6. #include <stdio.h>
  7. bool ExistFile(const char* const fname){
  8. FILE* fp;
  9. fp = fopen(fname, "r"); // try to read
  10. if(fp == NULL) return false;
  11. fclose(fp);
  12. return true;
  13. }

existfil.cpp : last modifiled at 2015/09/06 13:37:06(399 bytes)
created at 2016/04/11 11:17:20
The creation time of this html file is 2017/10/07 10:54:15 (Sat Oct 07 10:54:15 2017).